<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="icon" href="../../favicon.ico">
        <title><?php echo $OJ_NAME?></title>
        <?php include("template/$OJ_TEMPLATE/css.php");?>
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
            <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
    <script type="text/x-mathjax-config">
        // MathJax配置,skipTags排除的标签
        MathJax.Hub.Config({
            showProcessingMessages: false,
            messageStyle: "none",
            extensions: ["tex2jax.js"],
            jax: ["input/TeX", "output/HTML-CSS"],
            tex2jax: {
                inlineMath:  [ ["$", "$"] ],
                displayMath: [ ["$$","$$"] ],
                skipTags: ['script', 'noscript', 'style', 'textarea', 'pre','code','a'],
                ignoreClass:"comment-content"
            },
            "HTML-CSS": {
                availableFonts: ["TeX","STIX"],
                showMathMenu: false
            }
        });
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    </script>
    <script src="https://cdn.bootcss.com/mathjax/2.7.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

    <div class="container">
        <?php include("template/$OJ_TEMPLATE/nav.php");?>
        <!-- Main component for a primary marketing message or call to action -->
        <div class="jumbotron">
            <hr>
                <center><font size="+3">帮助文档和软件下载</font></center>
            <hr>
            <p>
                <h3>超时问题</h3>
                <ul>
                    <li>C程序中，1秒内累计可循环$3 * 10^8$次。</li>
                </ul>
                <h3>运算精度问题</h3>
                <ul>
                    <li><font color="blue">浮点数运算精度问题：</font>由于计算机中采用的是形如$2 * 10^n$的方式来表示浮点数的。因此
                        无法准确表示0.3这类小数。故计算中的浮点运算是存在误差的。如果遇到浮点数运算，为保证精度尽量优先选用double
                    </li>
                    <li>
                        <font color="blue">整型(int)运算数据溢出问题：</font>程序表达式中的整型运算，若参与运算的数都是整数或者都为int，
                        程序默认会采用int存储运算结果。因此当计算$10^9 * 10^9$的结果时就会导致运算结果溢出。正确的处理方式如下：

                        <br/>
                        方式1：
                        <pre><font color="blue">long long a = 1000000000;
a = a * 1000000000;</font></pre>
                        方式2：
                        <pre><font color="blue">long long a = (long long)1000000000 * 1000000000;</font></pre>
                    </li>
                </ul>
                <a href="http://www.zuozhujiaoyu.com:7803/blog/tips.html">程序编写防坑总结</a>
            </p>


            <hr>
<center>
  <font color=green size="+2">更多详情请访问</font>
</center>
<hr>

      </div>

    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <?php include("template/$OJ_TEMPLATE/js.php");?>	    

  </body>
</html>
